<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>个人中心</title>
    <meta name="viewport" content="width=device-width,initial-scale=1.0,
    minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <%request.setAttribute("PATH",request.getContextPath());%>
    <!-- Bootstrap -->
    <link href="${PATH}/css/bootstrap.min.css" rel="stylesheet">
    <!-- Custom styles for this template -->
    <!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
    <script src="${PATH}/js/jQuery-3.5.1.min.js"></script>
    <!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
    <script src="${PATH}/js/bootstrap.min.js"></script>
    <script src="${PATH}/js/userDetails.js"></script>
    <script>
        init(${userLogin.id})
    </script>
</head>
<body>
<div id="updateFrom" class="form-horizontal" style="margin: 10% 0 0 10%" >
    <input id="id" hidden="hidden" type="text" name="id">
    <div class="form-group">
        <label for="uname" class="col-sm-2 control-label">姓&nbsp;&nbsp;名：</label>
        <div class="col-sm-6">
            <input type="text" class="form-control" id="uname2" placeholder="name" readonly="readonly">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">性&nbsp;&nbsp;别：</label>
        <div class="col-sm-6">
            <label class="radio-inline">
                <input type="radio" id="sex1_2" name="g" disabled="disabled"> 男
            </label>
            <label class="radio-inline">
                <input type="radio" id="sex2_2" name="g" disabled="disabled"> 女
            </label>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">卡&nbsp;&nbsp;号：</label>
        <div class="col-sm-6">
            <input type="text" id="rid2" class="form-control" placeholder="卡号" readonly="readonly">
        </div>
    </div>
    <div class="form-group">
        <label  class="col-sm-2 control-label">密&nbsp;&nbsp;码：</label>
        <div class="col-sm-6">
            <input type="password" id="password2" class="form-control" placeholder="password" readonly="readonly">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">状态：</label>
        <div class="col-sm-6">
            <label class="radio-inline">
                <input type="radio" id="flag1_2" name="f" disabled="disabled"> 已激活
            </label>
            <label class="radio-inline">
                <input type="radio" id="flag2_2" name="f" disabled="disabled"> 未激活
            </label>
        </div>
    </div>
    <a href="${PATH}/userHome.jsp" class="btn btn-primary" role="button" style="margin-left: 20%">返回</a>
    <button type="button" onclick="javascript:updateUser(${userLogin.id})" class="btn btn-primary" style="margin-left: 22%">修改</button>
</div>


<!-- Modal -->
<div class="modal fade" id="user_Modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel2">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel2">用户信息修改</h4>
            </div>
            <div class="modal-body">
                <form id="u_From" class="form-horizontal">
                    <input id="uid" hidden="hidden" type="text" name="id">
                    <div class="form-group">
                        <label for="rid" class="col-sm-2 control-label">卡号：</label>
                        <div class="col-sm-10">
                            <input type="text" name="rid" class="form-control" id="rid" placeholder="卡号" readonly="readonly">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="uname" class="col-sm-2 control-label">姓名：</label>
                        <div class="col-sm-10">
                            <input type="text" name="name" class="form-control" id="uname" placeholder="name" readonly="readonly">
                        </div>
                    </div>
                    <div class="form-group">
                        <input id="gender" hidden="hidden" type="text" name="gender">
                        <label for="sex1" class="col-sm-2 control-label">性别：</label>
                        <div class="col-sm-10">
                            <label class="radio-inline">
                                <input type="radio" name="gender" checked="checked" id="sex1" value=""男 disabled="disabled"> 男
                            </label>
                            <label class="radio-inline">
                                <input type="radio" name="gender" id="sex2" value="女" disabled="disabled"> 女
                            </label>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="password_j" class="col-sm-2 control-label">旧密码：</label>
                        <div class="col-sm-10">
                            <input type="password" class="form-control" id="password_j" placeholder="请输入原密码">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="password_x" class="col-sm-2 control-label">新密码：</label>
                        <div class="col-sm-10">
                            <input type="password" name="password" class="form-control" id="password_x" placeholder="请输入新密码">
                        </div>
                    </div>
                    <div class="form-group">
                        <input id="flag" hidden="hidden" type="text" name="flag">
                        <label for="flag1" class="col-sm-2 control-label">状态：</label>
                        <div class="col-sm-10">
                            <label class="radio-inline">
                                <input type="radio" name="flag" id="flag1" value="1" disabled="disabled"> 已激活
                            </label>
                            <label class="radio-inline">
                                <input type="radio" name="flag" checked="checked" id="flag2" value="0" disabled="disabled"> 未激活
                            </label>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                <button type="button" id="user_Submit" class="btn btn-primary">Save</button>
            </div>
        </div>
    </div>
</div>


</body>
</html>
